////////////////////////////////////////////////////////////////////////////////
//
//  FLEX USER GROUP HOKURIKU
//  Copyright 2009 Flex User Group Hokuriku
//  All Rights Reserved.
// 
//  NOTICE: Flex User Group Hokuriku permits you to use, 
//  modify, and distribute this file 
//  in accordance with the terms of the license agreement accompanying it.
//
////////////////////////////////////////////////////////////////////////////////
package net.fxug.hokuriku.chocolat.events
{
    import flash.events.Event;
    
    import net.fxug.hokuriku.chocolat.model.NetworkInterfaceData;
    
    public class SocketEvent extends Event
    {
        public static const SERVER_CONNECT_SUCCESS:String = "SERVER_CONNECT_SUCCESS";
        public static const SERVER_CONNECT_CLOSE:String = "SERVER_CONNECT_CLOSE";
        public static const SERVER_CONNECT_FAILED:String = "SERVER_CONNECT_FAILED";
        
        public var networkData:NetworkInterfaceData; //接続にトライしたアドレス
        
        public function SocketEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
        {
            super(type, bubbles, cancelable);
        }
		/**
		 * @inheritDoc flash.events.Event#clone()
		 */
		override public function clone() : Event
		{
			return new SocketEvent(type, bubbles, cancelable);
		}
    }
}